import {hyRequest }  from "./index";

export const APIMusic = {
  getBanners() {
    return hyRequest.get("/banner", {
      type: 2
    })
  },

  getRankings(id) {
    return hyRequest.get("/playlist/detail", {
      id
    })
  },

  getHotSongMenu(offset = 0, limit = 10, order = "hot", ) {
    return hyRequest.get("/top/playlist", {
      offset,
      limit,
      order,
    })
  },

  getRecommendMenu(limit) {
    return hyRequest.get("/personalized", {
      limit
    })
  },

  getSongDetail(id) {
    return hyRequest.get("/playlist/detail", {
      id,
    })
  }
}